/* 
 * File:   lcd19264.h
 * Author: Administrator
 *
 * Created on 2013?10?19?, ??8:36
 */

#ifndef LCD19264_H
#define	LCD19264_H

#ifdef	__cplusplus
extern "C" {
#endif


extern unsigned char LCD19264_DispBuffer[64];
extern void LCD19264_Init();

/****************************************************************************
 * The flowing function can be run independently.
 * Other functions rely on these functions.
 * so if you delete it, some functions may not work.
 ****************************************************************************/

extern void LCD19264_Busy();
extern void LCD19264_DataW(unsigned char Data);
extern void LCD19264_ComW(unsigned char Command);
extern void LCD19264_WriteCom_CS1(unsigned char Content);
extern void LCD19264_WriteCom_CS2(unsigned char Content);
extern void LCD19264_WriteCom_CS3(unsigned char Content);
extern void LCD19264_WriteCom(unsigned char U,unsigned char Content);


/******************************************************************************
 * Used to display font on your LCD
 * If you do not use these functions, you can delet it and it's sources in the LCD19264.c
 *****************************************************************************/
extern void LCD19264_CharDisp(unsigned char StartPage,unsigned char StartCol,unsigned char DispCh);            //the col must be multipled of 8
extern void LCD19264_CharDisp_Anti(unsigned char StartPage,unsigned char StartCol,unsigned char DispCh);      //the col must be multipled of 8
extern void LCD19264_Char16_32Disp(unsigned char StartPage,unsigned char StartCol,unsigned char DispCh);      //the col must be multipled of 16
extern void LCD19264_Char16_32Disp_Anti(unsigned char StartPage,unsigned char StartCol,unsigned char DispCh);//the col must be multipled of 16
extern void LCD19264_StringDisp(unsigned char StartPage,unsigned char StartCol,unsigned char *DispStr);       //the col must be multipled of 8
extern void LCD19264_StringDisp_Anti(unsigned char StartPage,unsigned char StartCol,unsigned char *DispStr); //the col must be multipled of 8
extern void LCD19264_CN_Disp(unsigned char StartPage,unsigned char StartCol,const unsigned char *pCN);        //the dots must be 16*16
extern void LCD19264_CN_Disp_Anti(unsigned char StartPage,unsigned char StartCol,const unsigned char *pCN);  //the dots must be 16*16
extern void LCD19264_LineDisp(unsigned char Page ,unsigned char StartCol,unsigned char Wide,const unsigned char *pImg);
extern void LCD19264_LineDisp_Anti(unsigned char StartPage ,unsigned char StartCol,unsigned char Wide,const unsigned char *pImg);
extern void LCD19264_ImgDisp(unsigned char StartPage ,unsigned char StartCol ,unsigned char Wide ,unsigned char PageHigh ,const unsigned char *pImg);      // Omnipotent
extern void LCD19264_ImgDisp_Anti(unsigned char StartPage ,unsigned char StartCol ,unsigned char Wide ,unsigned char PageHigh ,const unsigned char *pImg);// Omnipotent
/******************************************************************************/
/******************************************************************************
 * Standalone application
 * If you do not use these functions, you can delet it and it's sources in the LCD19264.c
 *****************************************************************************/

extern void LCD19264_StartLine_All(unsigned char Line);
extern void LCD19264_StartLine_CS1(unsigned char Line);
extern void LCD19264_StartLine_CS2(unsigned char Line);
extern void LCD19264_StartLine_CS3(unsigned char Line);
extern void LCD19264_StartLine(unsigned char U,unsigned char Line);
extern void LCD19264_ScreenClr();

/*
extern unsigned char LCD19264_ReadData_CS1();
extern unsigned char LCD19264_ReadData_CS2();
extern unsigned char LCD19264_ReadData_CS3();
extern void LCD19264_PageSet(unsigned char U,unsigned char Page);
extern void LCD19264_ColSet(unsigned char U,unsigned char Col);
extern void LCD19264_Write(unsigned char U,unsigned char Com_Data,unsigned char Content);
extern void LCD19264_Write_CS1(unsigned char Com_Data,unsigned char Content);
extern void LCD19264_Write_CS2(unsigned char Com_Data,unsigned char Content);
extern void LCD19264_Write_CS3(unsigned char Com_Data,unsigned char Content);
extern void LCD19264_WriteData(unsigned char U,unsigned char Content);
extern void LCD19264_WriteData_CS1(unsigned char Content);
extern void LCD19264_WriteData_CS2(unsigned char Content);
extern void LCD19264_WriteData_CS3(unsigned char Content);
*/
/******************************************************************************/
#ifdef	__cplusplus
}
#endif

#endif	/* LCD19264_H */

